package cn.edu.scau.cmi.huangzhiyuan.abstractFactory.factory;

import cn.edu.scau.cmi.huangzhiyuan.abstractFactory.domainAbstractClass.Insurance;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
		case "PICC":
			return new PICCFactory();
		case "PingAn":
			return new PingAnFactory();
		}
		return null;

	}
	
	/*
	 * 	生成不同的保险类型
	 */
	abstract public Insurance BodyInsurance();
	abstract public Insurance PersonInsurance();
	abstract public Insurance CarInsurance();
	abstract public Insurance OtherInsurance();
}
